<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>

<s:url value="/images" var="imgPath" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script type="text/javascript" charset="UTF-8"
	src="/js/formValidator.js" charset="UTF-8"></script>
<script type="text/javascript" charset="UTF-8"
	src="/js/formValidatorRegex.js" charset="UTF-8"></script>
<!-- 月历 -->
<script type="text/javascript" charset="UTF-8"
	src="/js/jquery.datepick.js"></script>
<script type="text/javascript" charset="UTF-8"
	src="/js/jquery.datepick-zh-CN.js"></script>
<!-- 時間 -->
<script type="text/javascript" src="/js/jquery.timePicker.js"></script>
<link rel="stylesheet" type="text/css" href="/js/timePicker.css" />
<script type="text/javascript" charset="UTF-8"
	src="/css/jquery-ui-1.7.2.custom.min.js"></script>
<link rel="stylesheet" type="text/css"
	href="/css/jquery-ui-1.7.2.custom.css" />
<link rel="stylesheet" type="text/css"
	href="/css/smoothness.datepick.css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body STYLE='OVERFLOW: SCROLL;'>
	<h1>行销活动管理</h1>
	<div style="color: red">
		<s:actionerror />
		<s:actionmessage />
		<s:fielderror />
	</div>
	<c:forEach items="${promotionOuterList}" var="list" varStatus="i">
		<table class="tb-data" width="100%">
			<tr>
				<th width="20%">* 活动名称</th>
				<td>${list.titleName }</td>
			</tr>
			<tr>
				<th>* 活动说明</th>
				<td>${list.description }</td>
			</tr>
			<tr>
				<th>* 活动起始日期时间</th>
				<td>${list.startDate }</td>
			</tr>
			<tr>
				<th>* 活动结束日期时间</th>
				<td>${list.endDate }</td>
			</tr>
			<tr>
				<th>* 支付金额</th>
				<td>${list.price }</td>
			</tr>
			<tr>
				<th>* 活动赠品</th>
				<td>
					<table width="100%" border="1" cellspacing="0" cellpadding="0"
						class="tb-data">
						<tr>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0"
									id="addColHere">

									<tr>
										<td>赠品编号</td>
										<td>赠品数量</td>
										<td>已用数量</td>
									</tr>
									<c:forEach items="${promotionPresentList}" var="glist" varStatus="i">
										<tr>
											<td>${glist.specId }</td>
											<td>${glist.qty }</td>
											<td>${glist.afnjQty }</td>
										</tr>
									</c:forEach>
								</table></td>
						</tr>
					</table></td>
			</tr>
			<tr>
				<th>* 赠送方式</th>
				<td><c:if test="${list.sendWay==1 }">随机</c:if> <c:if
						test="${list.sendWay==0 }">全部</c:if></td>

			</tr>
			<tr>
				<th>* 启用</th>
				<td><c:if test="${list.status==1 }">是</c:if> <c:if
						test="${list.status==0 }">否</c:if>
				</td>
			</tr>
			<tr>
				<th>* 活動Domain</th>
				<td>${list.domainSrc }</td>
			</tr>
		</table>
	</c:forEach>

</body>

</html>